const webapckConfig = require('../build/webpack.config')

// 运行的工具
// const operation = process.argv[1].indexOf('webpack-dev-server') !== -1 ? 'webpack' : 'webpackDevServer'

module.exports = webapckConfig({
    env: process.argv.indexOf('serve') !== -1 ? 'dev' : 'build',
    root: __dirname,
    htmlTemplate: './public/index.html'
})
